package com.maychat.enums;

import lombok.Getter;

@Getter
public enum UpdateFileType {
    FILE("文件"), OUT_LINK("外链");
    private final String desc;

    UpdateFileType(String desc) {
        this.desc = desc;
    }

    public static UpdateFileType getByOrdinal(Integer ordinal) {
        UpdateFileType[] values = values();
        if (ordinal == null || ordinal < 0 || ordinal >= values.length) return null;
        return values[ordinal];
    }

}